const name = 'jueyi', favorite = '唱跳rap篮球';

const tag = (arr, ...placeholder) => {
    // console.log(arr);
    // console.log(...placeholder);
    return arr.reduce((prev, cur, i) =>
        prev + `<span class="addColor">${placeholder[i - 1]}</span>` + cur);
};

const result = tag`我是${name},喜欢${favorite}!`;
console.log(result);
document.body.innerHTML = result;